body {
  font-family: Arial, sans-serif;
  background-image: url("../media/succès.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  size: 16px;
}
.page-background {
  position: fixed;
  inset: 0;
  background: url("../media/succès.png") center/cover no-repeat;
  z-index: -2;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.back {
  position: fixed;
  top: 20px;
  left: 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  background: rgba(255, 0, 0, 0.85);
  padding: 8px 14px;
  border-radius: 8px;
}

.suivant {
  position: fixed;
  top: 20px;
  right: 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  background: rgba(255, 0, 0, 0.85);
  padding: 8px 14px;
  border-radius: 8px;
}

h1 {
  text-align: center;
  font-size: 100px;
  margin-bottom: 40px;
  color: #ffffff;
}

.conteneur {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  flex-wrap: wrap;
}

.card { 
  background-color: rgba(255, 190, 190, 0.7);
  border: 2px solid #c07272;
  padding: 20px;
  width: 400px;
  size: 16px;
  justify-content: space-evenly;
  align-items: center;
  font-size: 20px;
  text-align: justify;
  border-radius: 8px;
}

h2 {
  text-align: center;
}



@media (max-width: 600px) {

  body {
    font-size: 16px;
    margin: 0;
    text-align: center; 
  }

  .back,
  .suivant {
    font-size: 15px;
    padding: 6px 10px;
    top: 10px;
  }
  .back { left: 10px; }
  .suivant { right: 10px; }

  h1 {
    font-size: 34px;
    margin: 80px 10px 20px;
    text-align: center;
  }

  .conteneur {
    flex-direction: column;
    align-items: center;
    text-align: center; 
    gap: 20px;
  }

  .card {
    width: 90%;
    max-width: 500px;
    padding: 16px;
    font-size: 16px;
    text-align: center; 
    line-height: 1.5;
  }

  h2 {
    font-size: 20px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 26px;
  }
  .card {
    font-size: 15px;
  }
}
